home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
DAYLAST.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
42 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_DayLast( dDate ) --> nDay
PARAMETERS:
dDate : Date from which last day of the month is to be derived.
SHORT:
Determine the date of the last day of the month, with respect for leap years.
DESCRIPTION:
_DayLast() returns the date of the last day of the month of dDate in the same
way that _DayFirst( returns the first day of the month. It also properly
returns "02/29/yy" on leap years.
NOTE:
EXAMPLE:
Look carefully at the logical condition test of "t" in the following
examples:
t = _DayLast( ctod('03/22/93') )
Result: (t == ctod('03/31/93') ) = TRUE
t = _DayLast( ctod('02/22/93') )
Result: (t == ctod('02/28/93') ) = TRUE
t = _DayLast( ctod('02/22/92') )
Result: (t == ctod('02/29/92') ) = TRUE
******************************************************************************/